import Vue from 'vue'
import App from './App.vue'
import VueRouter from 'vue-router'
import axios from 'axios'

// import MyHeader from './components/MyHeader.vue'
// import MyTabBar from './components/MyTabBar.vue'
// import MyTable from './components/MyTable.vue'

import MyGoodsList from './components/MyGoodsList.vue'
import MyGoodsSearch from './components/MyGoodsSearch'
import MyUserInfo from './components/MyUserInfo'

axios.defaults.baseURL = 'https://www.escook.cn'
import 'bootstrap/dist/css/bootstrap.css'
import './assets/fonts/iconfont.css'

Vue.prototype.$axios = axios
Vue.config.productionTip = false
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/MyGoodsList',
  },
  {
    path: '/MyGoodsList',
    component: MyGoodsList,
  },
  {
    path: '/MyGoodsSearch',
    component: MyGoodsSearch,
  },
  {
    path: '/MyUserInfo',
    component: MyUserInfo,
  },
]

const router = new VueRouter({ routes })
new Vue({
  router,
  render: (h) => h(App),
}).$mount('#app')
